<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Location</title>
<script type="text/javascript">

	function showLocationText() {
		
		var locationText = "href: " + location.href +
			"<br/>protocol: " + location.protocol +
			"<br/>hostname: " + location.hostname +
			"<br/>port: " + location.port +
			"<br/>host: " + location.host +
			"<br/>pathname: " + location.pathname +
			"<br/>hash: " + location.hash +
			"<br/>search: " + location.search;		
		
		document.getElementById("locationText").innerHTML = locationText;
	}
</script>
</head>
<body onLoad="showLocationText()">
<p id="locationText"></p>
</body>
</html>